package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.Product;
import com.mmall.vo.ProductDetailVo;

import java.util.List;

/**
 * Create by lisy on Qingdao
 **/
public interface IProductService {

    ServerResponse productSaveOrAddService(Product product);

    ServerResponse setSaleStatusService(Integer productId, Integer status);

    ServerResponse<ProductDetailVo> getProductDetail(Integer productId);

    ServerResponse<PageInfo> selectAllProduct(int pageNum, int pageSize);

    ServerResponse<PageInfo> productSearch(String productName, Integer productId, int pageNum, int pageSize);

    ServerResponse<ProductDetailVo> getProductDetailCustomer(Integer productId);

    ServerResponse<PageInfo> getProductByKeyWordCategoryId(String keyWord, Integer categoryId, int pageNum, int pageSize, String orderBy);
}
